﻿using System;
using System.Data;
using System.Data.SqlClient;
using QLTH_DTO;
namespace QLTH_DATASSECC
{
   public class clsBanHocDA : ConnectionData.clsKetNoi
    {
       String _sql;
       public DataTable DanhSachBan()
       {
           _sql = "SELECT MABAN,TENBAN FROM BANHOC";
           return Load_DataTable(_sql);
       }
       public string Laymaban(String _dk)
       {
           _sql = "SELECT MABAN FROM BANHOC WHERE TENBAN =N'" + _dk + "'";
           return laymadk(_sql).ToString();
       }
    }
}
